﻿#pragma once

#include "OperatorCatalogTreeCtrl.h"
#include "OperatorListCtrl.h"


// COperatorLibraryDialog 对话框

class COperatorLibraryDialog : public CDialogEx
{
	DECLARE_DYNAMIC(COperatorLibraryDialog)

public:
	COperatorLibraryDialog(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~COperatorLibraryDialog();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DIALOG_OPERATOR_LIBRARY };
#endif

public:
	COperatorCatalogTreeCtrl m_tree;
	COperatorListCtrl m_list;
	CComboBox m_cmbModule;
	CString m_strModName;

protected:
	void PopulateModuleCombo();
	void PopulateOperator(z_uint32 nModeCode);
	void PopulateOperaotrList();

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();

	afx_msg void OnCbnSelchangeComboModule();
	afx_msg void OnNMClickListOperator(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnNMClickTreeOperator(NMHDR *pNMHDR, LRESULT *pResult);
	BOOL m_bShowAllOpers;
	afx_msg void OnBnClickedCheckOperShowAll();
};
